<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>组件传数据</title>
</head>
<body>
<div id="app">
    <my v-bind:title="1,2,3"></my>
</div>
<script src="vue.js"></script>
<script>
    Vue.component('my',{
        props:['title'],
        template:'<p>{{title}}</p>'
    })
    new Vue({
        el:"#app"
    })
</script>
</body>
</html>